package com.atguigu.gulimail.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrGroupEntity;
import com.atguigu.gulimail.product.vo.AttrGroupWithAttrsVo;
import com.atguigu.gulimail.product.vo.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author fangyi
 * @email 2244210628@qq.com@gmail.com
 * @date 2022-08-09 22:57:13
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    List<AttrGroupWithAttrsVo> getAttrsBycatLogId(Long catelogId);

    void removeAttrGroupAndRelation(List<Long> asList);

    List<SpuItemAttrGroupVo> getAttrGroupAndAttrsBySpuId(Long catalogId, Long spuId);
}

